# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-eventlet
_pkgname=eventlet
pkgver=0.25.1
pkgrel=4
pkgdesc='Highly concurrent networking library.'
url='https://pypi.org/project/eventlet/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-dnspython' 'python2-enum34' 'python2-greenlet'
         'python2-monotonic' 'python2-six')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('936aac45e24b2797cc8b6cd6238d493ce5eb60a47096e13827b8be145bd8dd14503f5ae624485c87b163718a85733b2317688366ef5fdf347f7d367fbf4d521d')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

